<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body {
            background-color: #ccc;
            height: 2000px;
        }
        .box {

        }
        div {
            display: flex;
            width: 300px;
            height: 500px;
            margin: 0 auto;
            background-color: pink;
            /* flex-direction: row; */
            /* flex-direction: column; */
            /* justify-content: space-around; */
        
            /* justify-content: center; */
            justify-content: space-between;
            justify-content: left;
            align-items: center;

        }
        span {
            background-color: rgb(202, 89, 89);
            width: 50px;
            height: 100px;
            
        }
        section {
            display: flex;
            margin: 100px auto; 
            width: 60%;
            height: 300px;
            background-color: pink;
            align-items: center;
        }
        section span {
            /* flex: 1; */
            height: 200px;
            background-color: green;
        }


        section span:nth-child(1) {
            width: 30%;

        }  
        section span:nth-child(2) {
            flex: 6;
            background-color: #fff;
        }
        section span:nth-child(3) {
            flex: 12;
            background-color: #fff;
        }
        section span:nth-child(4) {
            width: 10%;
            
        } 
    
    
    
    </style>
</head>
<body>
    <div class="box">
        <div>
            <span>1</span>
            <span>2</span>
            <span>3</span>
            <span>4</span>
        </div>

    </div>
    <section>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
    </section>
</body>
</html>